<?php

namespace h5\controllers;

/**
 * 账号
 *
 * @author peng.huang
 */
class AccountController extends \h5\controllers\base\H5BaseController {

    /**
     * 登录
     * 
     * @return array
     */
    public function actionLogin() {
        $this->title = '云GO';
        $this->setLayout('layouts/no-master');
        $this->addCss('main');
        return array();
    }

    /**
     * 注册
     * 
     * @return array
     */
    public function actionReg() {
        $this->title = '用户注册';
        $this->setLayout('layouts/no-master');
        $this->addCss('main');
        return array();
    }

    /**
     * 注册
     * 
     * @return array
     */
    public function actionFindpwd() {
        $this->title = '找回密码';
        $this->setLayout('layouts/no-master');
        $this->addCss('main');
        return array();
    }

    /**
     * 退出
     * 
     * @return array
     */
    public function actionLoginOut() {
        $this->clearAccount();
        $this->response->redirect('/h5/login');
    }

}
